package com.zsr.example.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zsr.example.entity.EduSection;

/**
 * <p>
 * 课程小节 服务类
 * </p>
 *
 * @author zsr
 * @since 2021-11-15
 */
public interface EduSectionService extends IService<EduSection> {

    boolean getCountByChapterId(String id);

    //根据课程id删除小节
    void removeVideoByCourseId(String courseId);

    boolean removeVideoById(String id);

    /**
     * 判断视频id和用户id判断视频能否播放
     * @param videoSourceId
     * @param memberId
     * @return
     */
    boolean isHavePermissions(String videoSourceId,String memberId);
}
